/* ldiv example */
#include <stdio.h>
#include <stdlib.h>

int main()
{
  ldiv_t ldivresult;
  ldivresult = ldiv(1000000L, 132L);
  printf ("1000000 div 132 => %ld, remainder %ld.\n", ldivresult.quot, ldivresult.rem);
  return 0;
}
